from selenium import webdriver
from selenium.webdriver.common.by import By

url = 'https://luna.58.com/list.shtml?plat=m&city=gz&cate=zufang&-15=20&tag=lunazf-icon-1-new1&PGTID=0d200001-0000-3d2f-7ff9-623804397685&ClickID=2'
driver = webdriver.Edge()

driver.get(url)
el_list = driver.find_elements(By.XPATH,'//*[@id="list"]/div[2]/ul/li/a/div[2]/div[1]/div[1]')
href_list = driver.find_elements(By.XPATH,'//*[@id="list"]/div[2]/ul/li/a')

for el in el_list:
    print(el.text)
for href in href_list:
    print(href.get_attribute('href'))